using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SharedObjects
{
	[ReferencedBy(typeof(Agent))]
	[DataContract]
	public class EmailAccount : EntityBase
	{
		// Name property is recipient name in the email address (Name@...)
		[DataMember] public string Name { get; set; }
		[DataMember] public ulong SystemId { get; set; } //on which CS is this email account, GetHostName on that CS makes the part behind the @
		[DataMember] public List<EmailHeader> Emails { get; set; } //contains all emails
	}

	//this is for presenting a selection of user accounts on a system, in case someone hacks the system.
	[DataContract]
	public class ShortEmailAccountInfo : EntityBase
	{
		[DataMember] public string Name { get; set; }
	}

	public enum EmailFolder
	{
		Inbox,
		Sent,
		Spam,
		Trash
	}
}